package com.easylinkin.linkappapi.airconditioner.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.airconditioner.entity.AirconditionDeviceRecord;
import com.easylinkin.linkappapi.openapi.dto.DatapushDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface AirconditionDeviceRecordService extends IService<AirconditionDeviceRecord> {
    int batchInsert(List<AirconditionDeviceRecord> list);

    void separateMetering(DatapushDTO json);

    /**
     * 分户计量分页查询
     */
    IPage<AirconditionDeviceRecord> selectGroupByStatistics(Page<AirconditionDeviceRecord> page, AirconditionDeviceRecord airHostDevice);

    /***
     * 导出
     * @param request
     * @param response
     */
    void exportData(AirconditionDeviceRecord requestModel, HttpServletRequest request, HttpServletResponse response);

}
